const { mongoose } = require('./db')
const Schema = mongoose.Schema

//入库展示
const ygqxSchema = new Schema({
    staff: String,
    start: {
        type: Date,
        default: new Date()
    },
    end: {
        type: Date,
        default: new Date()
    },
    department: String,//部门
    specific: String,//具体去向
})
const ygqxModel = mongoose.model('ygqx', ygqxSchema, 'ygqx')
// ygqxModel.create([
//     {
//            staff: "贾岳杰",
//     department: "储运部",//部门
//     specific: "振涛教育",//具体去向
//     }
// ])
module.exports = { ygqxModel }
